<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://"
            + request.getServerName() + ":" + request.getServerPort()
            + path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
    <title>系统管理员登录</title>

    <link href="<%=path %>/vendors/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">
    <link href="<%=path %>/build/css/custom.min.css" rel="stylesheet">
    <script type='text/javascript' src='<%=path %>/js/jquery-3.1.1.min.js'></script>
    <script type='text/javascript' src='<%=path %>/js/timeCardMain.js'></script>
    <script type='text/javascript'>
        function check1() {
            if (document.ThisForm.userName.value.length < 1) {
                alert("请输入用户名");
                document.ThisForm.userName.focus();
                return false;
            }
            if (document.ThisForm.userPw.value.length < 1) {
                alert("请输入密码");
                document.ThisForm.userPw.focus();
                return false;
            }
            tc.adminLogin(document.ThisForm.userName.value, document.ThisForm.userPw.value, callback);
        }

        function callback(data) {
            console.log(data);
        }
    </script>
</head>

<body class="login">
<div>
    <a class="hiddenanchor" id="signup"></a>
    <a class="hiddenanchor" id="signin"></a>

    <div class="login_wrapper">
        <div class="animate form login_form">
            <section class="login_content">
                <form action="" name="ThisForm" method="post">
                    <h1>管理登陆</h1>
                    <div>
                        <input type="text" name="userName" class="form-control" placeholder="用户名" required=""/>
                    </div>
                    <div>
                        <input type="password" name="userPw" class="form-control" placeholder="密码" required=""/>
                    </div>
                    <div>
                        <a class="btn btn-default submit" onclick="check1()">登陆</a>
                    </div>

                    <div class="clearfix"></div>

                    <div class="separator">

                        <div class="clearfix"></div>
                        <br/>

                        <div>
                            <h1>第七组点卡商城</h1>
                            <p>©2016 All Rights Reserved.</p>
                        </div>
                    </div>
                </form>
            </section>
        </div>
    </div>
</div>
</body>
</html>
